package com.fare.taluo.vo.queue;

import java.io.Serializable;
import java.util.Date;

import com.foreveross.threadpool.queue.WorkQueue;

public class QueueBaseVO  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3600314313082581610L;
	/**
	 * 队列ID
	 */
	protected Long id;
	/**
	 * 队列名称
	 */
	protected String name;
	/**
	 * 创建时间
	 */
	protected Date createTime = new Date();
	/**
	 * 队列计划开始执行时间
	 * <p>threadpool线程队列池，通常根据这个时间与当前时间相比，将队列追加到池中，此时队列状态由等待转为已加载
	 */
	protected Date planStartTime = new Date();
	/**
	 * 实际开始时间
	 */
	protected Date startTime;
	/**
	 * 实际执行结束时间
	 */
	protected Date endTime;
	/**
	 * 执行状态
	 * <p>根据队列所处环境不同，状态分为：等待、已加载、正在执行、执行成功、执行失败、暂停
	 * @see WorkQueue.STATUS_WAITING....
	 */
	protected int status = WorkQueue.STATUS_WAITING;
	/**
	 * 执行时长(单位毫秒)
	 */
	protected long spentTimes = 0L;
	/**
	 * 记录的执行日志
	 */
	protected String recLog;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getPlanStartTime() {
		return planStartTime;
	}
	public void setPlanStartTime(Date planStartTime) {
		this.planStartTime = planStartTime;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public long getSpentTimes() {
		return spentTimes;
	}
	public void setSpentTimes(long spentTimes) {
		this.spentTimes = spentTimes;
	}
	public String getRecLog() {
		return recLog;
	}
	public void setRecLog(String recLog) {
		this.recLog = recLog;
	}
	
}
